interface IdFun<Type> {
  id: {
    value:Type
  },
  ids: () => Type[]
}

let idObj: IdFun<number> = {
  id: {
    value: 1
  },
  ids: () => [1, 2, 3]
}

console.log(idObj.id.value)
console.log(idObj.ids())